package hotel.switchs.oversea.biz.mapper;

import hotel.base.oversea.repository.MyMapper;
import hotel.switchs.oversea.api.entity.SwitchBasicRoomType;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * @Author lmf
 * @Date 2020/5/16 17:13
 **/
public interface SwitchBasicRoomTypeMapper  extends MyMapper<SwitchBasicRoomType> {
    Integer deleteBatch(Map idsMap);

    /**
     * 根据子酒店+子物理房型id 获取母物理房型名称+母物理房型id
     * @param hotelId
     * @param basicRoomTypeId
     * @return
     */
    SwitchBasicRoomType selectByHotelIdAndBasicId(@Param("hotelId") Integer hotelId, @Param("basicRoomTypeId") Integer basicRoomTypeId);
}
